package cn.zy.dome.client;

import cn.zy.amyan.client.AyClient;
import cn.zy.amyan.client.factory.BeanFactory;
import cn.zy.amyan.client.util.AyClientUtil;
import cn.zy.amyan.core.data.ProductInfo;
import cn.zy.amyan.server.interfaces.IAyServer;
import cn.zy.dome.server.IServer;

/**
 * @author 子言
 * @date 2024/5/5 下午 17:47
 */
public class ConsumerApplication {
	public static void main(String[] args) {
		// 消费者使用实例
		IServer bean = AyClientUtil.getBean("dome-product", IServer.class);
		String result = bean.sayHello("老胡");
		System.out.println("result = " + result);
	}
}
